package com.product.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.product.app.mapper.PropertyMapper;
import com.product.app.service.PropertyService;
import com.tamll.bean.Property;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PropertyServiceImpl implements PropertyService {

    @Autowired
    private PropertyMapper propertyMapper;
    @Override
    public Property get(Integer property_category_id) {
        QueryWrapper<Property> wrapper=new QueryWrapper<>();
        wrapper.eq("propertyCategoryId",property_category_id);
        Property property = propertyMapper.selectOne(wrapper);
        return property;
    }
}
